package com.cuijq.ms.chain.v3;

/**
 * @author by CuiJQ
 * @Classname ConcreteHandler
 * @Description ConcreteHandler Description
 * @Date 2021/7/13 19:36
 */
public class ConcreteHandler1 extends Handler {

  /**
   * 当flag =flase 时不执行
   */
  boolean flag = false;

  @Override
  public boolean handleRequest(Handler request) {
    if (flag){
      System.out.println("handler1");
    }
    return flag;
  }
}
